<?php defined('SYSPATH') OR die('No direct access allowed.');


class Plug_Case extends Closingnode_Core {
	// Flag for the first case after the switch statement
	private $is_first = FALSE;
	
	public function parse_open()
	{
		return ($this->is_first) ? $this->clause . ': ?>' : '<?php ' . $this->clause . ': ?>' ;
	}
	
	public function parse_close()
	{	
		return '<?php break; ?>';
	}
	
	public function is_first($first)
	{
		$this->is_first = $first;
	}
}